package com.xuhai.blog19.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuhai.blog19.admin.entity.ExpiresEntity;
import com.xuhai.blog19.common.utils.R;

/**
 * @Author PangJunjie
 * @Date 2023/2/6/006
 */
public interface ExpiresService extends IService<ExpiresEntity> {
    ExpiresEntity getByToken(String token);

    R saveToken(int userId);

    void logout(int userId);

    ExpiresEntity getByUserId(int userId);
}
